package com.gy.common.constant;

public class WareConstant {

    public enum PurchaseStatus {
        CREATE_STATUS(0, "新建"),
        ASSGINED_STATUS(1, "已分配"),
        BUYING_STATUS(2, "已领取"),
        HASCOMPLETE_STATUS(3, "已完成"),
        BUYINGERROR_STATUS(4, "有异常");
        private Integer code;
        private String msg;
        PurchaseStatus(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }
        public String getMsg() {
            return msg;
        }
        public Integer getCode() {
            return code;
        }
    }
    public enum PurchaseDetailStatus {
        CREATE_STATUS(0, "新建"),
        ASSGINED_STATUS(1, "已分配"),
        BUYING_STATUS(2, "正在采购"),
        HASCOMPLETE_STATUS(3, "已完成"),
        BUYINGERROR_STATUS(4, "采购失败");
        private Integer code;
        private String msg;
        PurchaseDetailStatus(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }
        public String getMsg() {
            return msg;
        }
        public Integer getCode() {
            return code;
        }
    }
}
